﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DTL.Core;

public partial class ProjectList : System.Web.UI.Page
{
    public int pcount;                     //总条数
    public int page;                       //当前页
    public int pagesize;                   //设置每页显示的大小
    protected void Page_Load(object sender, EventArgs e)
    {
        this.pagesize = 20;
        if (!Page.IsPostBack)
        {
            this.RptBind("");
        }
    }

     private void RptBind(string strWhere)
        {
            //if (!int.TryParse(Request.Params["page"] as string, out this.page))
            //{
            //    this.page = 0;
            //}
            Projects core=new Projects();
            
            //this.pcount =100;
           

            this.rptList.DataSource = core.GetList(strWhere);
            this.rptList.DataBind();
        }

}
